package com.constans;

/**
 * @Author Ms.发发
 * @ClassName AliPayConstants
 * @Date 2024/12/18 16:22
 * @Description  公共请求参数
 **/
public class AliPayCommonRequestConstants {
    public static final String APP_ID = "9021000141612988";      //支付宝分配给开发者的应用ID 9021000141612497
    public static final String METHOD = "";      //接口名称

    public static final String CHARSET = "UTF8"; //请求使用的编码格式，如utf-8,gbk,gb2312

    /***
     * @Author Ms.发发
     * @Description 商户生成签名字符串所使用的签名算法类型，目前支持RSA2和RSA，推荐使用RSA2
     */
    public static final String SIGN_TYPE = "RSA2";
    /***
     * @Author Ms.发发
     * @Description 商户请求参数的签名串
     * 加签原理
     * 1. 获取所有支付宝开放平台的 post 内容，不包括字节类型参数，如文件、字节流，剔除 sign 字段，剔除值为空的参数；
     * 2. 按照第一个字符的键值 ASCII 码递增排序（字母升序排序），如果遇到相同字符则按照第二个字符的键值 ASCII 码递增排序，以此类推；
     * 3. 将排序后的参数与其对应值，组合成 参数=参数值 的格式，并且把这些参数用 & 字符连接起来，此时生成的字符串为待签名字符串。
     * timestamp=2019-01-01 08:09:33&method=alipay.trade.create
     * &app_id=20135234674&sign_type=RSA2&biz_content={"total_amount":"10.08", "buyer_id":"2088123456781234", "discount_amount":""}
     */
    public static final String SIGN = "";
    /***
     * @Author Ms.发发
     * @Description 发送请求的时间   yyyy-MM-dd HH:mm:ss
     */
    public static final String TIMESTAMP = "yyyy-MM-dd HH:mm:ss";

    /***
     * @Author Ms.发发
     * @Description 调用的接口版本，固定为：1.0
     */
    public static final String VERSION = "1.0";

    /***
     * @Author Ms.发发
     * @Description 请求参数的集合，最大长度不限，除公共参数外所有请求参数都必须放在这个参数中传递
     */
    public static final String BIZ_CONTENT = "";

    //可选参数  ↓ ↓ ↓ ↓

    public static final String FORMAT = "json";  //仅支持JSON
    /***
     * @Author Ms.发发
     * @Description 支付宝服务器主动通知商户服务器里指定的页面http/https路径。
     */
    public static final String NOTIFY_URL = "https://4ab981c.r8.vip.cpolar.cn/alipay/notify";

    public static final String APP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F1qwQ7EMxxGQ6SmAXLs+nrjLc9a8rxVZ3jrsWP7+2lrc+dv5uZaPxWQKBgCotQMnC9Aan2b4ayJtAUilct88IlVAyLQGPyaVgCchLcd+YiYxhK057natKDkcflRmtX2x9eVOBL4TNctd/KNDj4Pj1I1MVcyt3GwS7wraU0W1AggJQW+gyWqPXXWGl/le2CJPpyU5Xu5/0WJ/fTqggNy6XXwz4hWds5eEwOQcRAoGAQk6feT45LruuVeoF7x3K5Hkz3aIYHlDr4EvyeDAAu3J34mSzCrZQSvloFoUobBbYCRzGeGykBGW6NGuoKyVsApmL8R7wXMDupKEGK0+4okAWtaZbVw8RTfbaixDE9WAXL7NiyHGcjBPd4wRRpcNMcsax2lQRYUN54XYsRzL6b1ECgYBgOqYlXWP60wQ0F3NjouU7DdEd8y21Br7Orvbn4qKfvfi+l6IICYl8ljkRl7BxFhd8h3RIMp/CwxlVNvqI/C/UTGUnJ/m+keqdst4whrRU1Fw2lnJmtBEsRLdpifFC0VOdThkTd5gJYWJkh7keNs2SXizVi+5yvNg0OOHL6Lme9A==";


    public static final String PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAhnm7KMqEqt3QVSbJompfbkhrPMYwVPdjjPaTsUHyQoKtrsqD5u3q2/ghKzb/8r2hN6GK48vW7vi/qPeHVHJjhLXuZ4LVriFBIiEJSfGZCyDTdpnDHgf82y+c9IHA2JYsBlmnMj9jz5cZWpfoM1XrKNf6acf2PrmO6biGRdyCkp9gqrAaizXhFy0PwbeVnB4ftBkI1pS1rNLftECyA1AGXlMOStTzWVQe2+IgHFkVjfHhQTG1V6iAU3JfCKAoqEEECdd1kpf5ApnHbEdeTtEWFEEffvWxx/XNBod62p8wcoLZ2Fb/lNHyhyOw4kvP3i0f6ME+hwOQ8OqG0nRRaHuO4QIDAQAB";
    //官方沙箱支付地址
    public static final String SERVER_URL = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";



}
